﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020012EF RID: 4847
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SyncRogueCommonDialogueOptionFinishScNotify : IMessage<SyncRogueCommonDialogueOptionFinishScNotify>, IMessage, IEquatable<SyncRogueCommonDialogueOptionFinishScNotify>, IDeepCloneable<SyncRogueCommonDialogueOptionFinishScNotify>, IBufferMessage
	{
		// Token: 0x17003D34 RID: 15668
		// (get) Token: 0x0600D906 RID: 55558 RVA: 0x00245DE4 File Offset: 0x00243FE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SyncRogueCommonDialogueOptionFinishScNotify> Parser
		{
			get
			{
				return SyncRogueCommonDialogueOptionFinishScNotify._parser;
			}
		}

		// Token: 0x17003D35 RID: 15669
		// (get) Token: 0x0600D907 RID: 55559 RVA: 0x00245DEB File Offset: 0x00243FEB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SyncRogueCommonDialogueOptionFinishScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003D36 RID: 15670
		// (get) Token: 0x0600D908 RID: 55560 RVA: 0x00245DFD File Offset: 0x00243FFD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SyncRogueCommonDialogueOptionFinishScNotify.Descriptor;
			}
		}

		// Token: 0x0600D909 RID: 55561 RVA: 0x00245E04 File Offset: 0x00244004
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncRogueCommonDialogueOptionFinishScNotify()
		{
		}

		// Token: 0x0600D90A RID: 55562 RVA: 0x00245E0C File Offset: 0x0024400C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncRogueCommonDialogueOptionFinishScNotify(SyncRogueCommonDialogueOptionFinishScNotify other) : this()
		{
			this.dialogueData_ = ((other.dialogueData_ != null) ? other.dialogueData_.Clone() : null);
			this.resultOptionInfo_ = ((other.resultOptionInfo_ != null) ? other.resultOptionInfo_.Clone() : null);
			this.optionId_ = other.optionId_;
			this.eventUniqueId_ = other.eventUniqueId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D90B RID: 55563 RVA: 0x00245E80 File Offset: 0x00244080
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncRogueCommonDialogueOptionFinishScNotify Clone()
		{
			return new SyncRogueCommonDialogueOptionFinishScNotify(this);
		}

		// Token: 0x17003D37 RID: 15671
		// (get) Token: 0x0600D90C RID: 55564 RVA: 0x00245E88 File Offset: 0x00244088
		// (set) Token: 0x0600D90D RID: 55565 RVA: 0x00245E90 File Offset: 0x00244090
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDialogueDataInfo DialogueData
		{
			get
			{
				return this.dialogueData_;
			}
			set
			{
				this.dialogueData_ = value;
			}
		}

		// Token: 0x17003D38 RID: 15672
		// (get) Token: 0x0600D90E RID: 55566 RVA: 0x00245E99 File Offset: 0x00244099
		// (set) Token: 0x0600D90F RID: 55567 RVA: 0x00245EA1 File Offset: 0x002440A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDialogueOptionInfo ResultOptionInfo
		{
			get
			{
				return this.resultOptionInfo_;
			}
			set
			{
				this.resultOptionInfo_ = value;
			}
		}

		// Token: 0x17003D39 RID: 15673
		// (get) Token: 0x0600D910 RID: 55568 RVA: 0x00245EAA File Offset: 0x002440AA
		// (set) Token: 0x0600D911 RID: 55569 RVA: 0x00245EB2 File Offset: 0x002440B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint OptionId
		{
			get
			{
				return this.optionId_;
			}
			set
			{
				this.optionId_ = value;
			}
		}

		// Token: 0x17003D3A RID: 15674
		// (get) Token: 0x0600D912 RID: 55570 RVA: 0x00245EBB File Offset: 0x002440BB
		// (set) Token: 0x0600D913 RID: 55571 RVA: 0x00245EC3 File Offset: 0x002440C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EventUniqueId
		{
			get
			{
				return this.eventUniqueId_;
			}
			set
			{
				this.eventUniqueId_ = value;
			}
		}

		// Token: 0x0600D914 RID: 55572 RVA: 0x00245ECC File Offset: 0x002440CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SyncRogueCommonDialogueOptionFinishScNotify);
		}

		// Token: 0x0600D915 RID: 55573 RVA: 0x00245EDC File Offset: 0x002440DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SyncRogueCommonDialogueOptionFinishScNotify other)
		{
			return other != null && (other == this || (object.Equals(this.DialogueData, other.DialogueData) && object.Equals(this.ResultOptionInfo, other.ResultOptionInfo) && this.OptionId == other.OptionId && this.EventUniqueId == other.EventUniqueId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D916 RID: 55574 RVA: 0x00245F50 File Offset: 0x00244150
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.dialogueData_ != null)
			{
				num ^= this.DialogueData.GetHashCode();
			}
			if (this.resultOptionInfo_ != null)
			{
				num ^= this.ResultOptionInfo.GetHashCode();
			}
			if (this.OptionId != 0U)
			{
				num ^= this.OptionId.GetHashCode();
			}
			if (this.EventUniqueId != 0U)
			{
				num ^= this.EventUniqueId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D917 RID: 55575 RVA: 0x00245FD4 File Offset: 0x002441D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D918 RID: 55576 RVA: 0x00245FDC File Offset: 0x002441DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D919 RID: 55577 RVA: 0x00245FE8 File Offset: 0x002441E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.dialogueData_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.DialogueData);
			}
			if (this.EventUniqueId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.EventUniqueId);
			}
			if (this.OptionId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.OptionId);
			}
			if (this.resultOptionInfo_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.ResultOptionInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D91A RID: 55578 RVA: 0x0024607C File Offset: 0x0024427C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.dialogueData_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.DialogueData);
			}
			if (this.resultOptionInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ResultOptionInfo);
			}
			if (this.OptionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.OptionId);
			}
			if (this.EventUniqueId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EventUniqueId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D91B RID: 55579 RVA: 0x00246104 File Offset: 0x00244304
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SyncRogueCommonDialogueOptionFinishScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.dialogueData_ != null)
			{
				if (this.dialogueData_ == null)
				{
					this.DialogueData = new RogueCommonDialogueDataInfo();
				}
				this.DialogueData.MergeFrom(other.DialogueData);
			}
			if (other.resultOptionInfo_ != null)
			{
				if (this.resultOptionInfo_ == null)
				{
					this.ResultOptionInfo = new RogueCommonDialogueOptionInfo();
				}
				this.ResultOptionInfo.MergeFrom(other.ResultOptionInfo);
			}
			if (other.OptionId != 0U)
			{
				this.OptionId = other.OptionId;
			}
			if (other.EventUniqueId != 0U)
			{
				this.EventUniqueId = other.EventUniqueId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D91C RID: 55580 RVA: 0x002461AC File Offset: 0x002443AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D91D RID: 55581 RVA: 0x002461B8 File Offset: 0x002443B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 32U)
				{
					if (num == 10U)
					{
						if (this.dialogueData_ == null)
						{
							this.DialogueData = new RogueCommonDialogueDataInfo();
						}
						input.ReadMessage(this.DialogueData);
						continue;
					}
					if (num == 32U)
					{
						this.EventUniqueId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 104U)
					{
						this.OptionId = input.ReadUInt32();
						continue;
					}
					if (num == 122U)
					{
						if (this.resultOptionInfo_ == null)
						{
							this.ResultOptionInfo = new RogueCommonDialogueOptionInfo();
						}
						input.ReadMessage(this.ResultOptionInfo);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005662 RID: 22114
		private static readonly MessageParser<SyncRogueCommonDialogueOptionFinishScNotify> _parser = new MessageParser<SyncRogueCommonDialogueOptionFinishScNotify>(() => new SyncRogueCommonDialogueOptionFinishScNotify());

		// Token: 0x04005663 RID: 22115
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005664 RID: 22116
		public const int DialogueDataFieldNumber = 1;

		// Token: 0x04005665 RID: 22117
		private RogueCommonDialogueDataInfo dialogueData_;

		// Token: 0x04005666 RID: 22118
		public const int ResultOptionInfoFieldNumber = 15;

		// Token: 0x04005667 RID: 22119
		private RogueCommonDialogueOptionInfo resultOptionInfo_;

		// Token: 0x04005668 RID: 22120
		public const int OptionIdFieldNumber = 13;

		// Token: 0x04005669 RID: 22121
		private uint optionId_;

		// Token: 0x0400566A RID: 22122
		public const int EventUniqueIdFieldNumber = 4;

		// Token: 0x0400566B RID: 22123
		private uint eventUniqueId_;
	}
}
